import java.util.Scanner;

public class Main6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int i = 0;
        for (; i < 32; i++) {
            if (Math.pow(2, i - 1) > n) {
                break;
            }
        }
        if (n == 0) {
            System.out.println(32);
        } else if (n < 0) {
            System.out.println(0);
        } else {
            System.out.println(32 - i + 1);
        }
    }
}
